@use "./themes.scss";
@use "./element-plus/index.scss";
@use "./element-plus/element.scss";
@import "//at.alicdn.com/t/c/font_4522827_5b1ic6eqc8i.css";
* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none !important;
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  color: var(--use-color-info);
  overflow: overlay;
  transition: .3s
}
input,button {
  font-family: "PingFang SC", "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  color: var(--use-color-primary);
}

ul {
  list-style: none;
}

// 全局样式
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(0 0 0 / 40%);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(0 0 0 / 50%);
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;

  &.overflow-hidden {
    overflow: hidden;
  }
}

* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}


.flex {
  display: flex;
}

.flex-btw {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

// 右侧内容区针对fixed元素，有横向铺满的需求，可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
  position: fixed;
  left: 50%;
  right: 0;
  width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
  transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}

[data-mode="mobile"] {
  [data-fixed-calc-width] {
    width: 100% !important;
    transform: translateX(-50%) !important;
  }
}

.el-form-item__label {
  padding-right: 7px;
  color: var(--g-el-text-color);
}
// textarea 字体跟随系统
textarea {
  font-family: inherit;
}

.el-select,
.el-cascader {
  width: 100%;
}

:focus-visible {
  outline: 0;
}

.bigBtn {
  font-size: 18px !important;
  padding: 0 20px !important;
  height: 56px !important;
  border-radius: 8px !important;
  background-color: var(--use-color-primary);
  color: var(--use-color-info);
  font-weight: 500;
}

.use-dialog-header {
  width: calc(100% + 32px);
  height: 56px;
  line-height: 56px;
  background-color: var(--use-color-light-2);
  position: relative;
  left: -16px;
  top: -16px;
  text-align: center;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;

  .el-dialog__title {
    font-size: 16px;
    font-weight: bold;
  }

  .close {
    position: absolute;
    right: 24px;
    top: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}


.use-title-icon{
  color: var(--use-color-info-light-2);
  line-height: 24px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-weight: bold;
  &::before{
    content: '';
    width: 3px;
    height: 10px;	
    background: var(--use-color-primary);
    margin-right: 8px;
  }
}

.brw{
  border-radius:8px;
  background-color: #fff;
  padding: 0 24px;
}
